package com.wzs.learn.service.hystrix;

import com.wzs.learn.bean.Dept;
import com.wzs.learn.service.DeptClientService;

import java.util.Arrays;
import java.util.List;

public class DeptClientServiceImpl implements DeptClientService {
    @Override
    public boolean add(Dept dept) {
        return false;
    }

    @Override
    public Dept get(Integer deptNo) {
        return new Dept(-1,"服务器连接失败","no source");
    }

    @Override
    public List<Dept> getAll() {
        Dept[] list = {new Dept(-1,"服务器连接失败","no source")};
        return Arrays.asList(list);
    }
}
